package cn.remexs.doris.geo.udf;


import cn.remexs.doris.geo.GeoUtils;
import org.apache.hadoop.hive.ql.exec.UDF;

/**
 * wkt 转 JSON
 */
public class WktToJson extends UDF {

    public String evaluate(String wkt) {
        if (null == wkt || wkt.length() == 0) return null;
        return GeoUtils.wktToJson(wkt);
    }
}
